package com.newer.utils;

import org.apache.commons.lang.StringUtils;

import java.util.UUID;

/**
 * Created by 寻添俊 on 2016/10/13.
 */
public class GenIdUtils {

    /**
     * 主键生成
     *
     * @return
     */
    public static String genId() {
        return DateUtil.getDtToLong() + StringUtils.substring(UUID.randomUUID().toString(), 0, 3);
    }
}
